import cv2 as cv
import sys
from texttable import Texttable

t = Texttable(max_width=0)
t.add_row(['path', 'dtype', 'shape'])


def inspect(path):
    img = cv.imread(path, cv.IMREAD_UNCHANGED)
    t.add_row([path, img.dtype, img.shape])


for path in sys.argv[1:]:
    inspect(path)

print(t.draw())
